package cn.lin.factory.Responsibility;
/**
 * @author liufl E-mail:Huberier@allpyra.com
 * @version 创建时间：2017年8月22日 下午5:35:04
 * 职责链模式
 */
public class ResponsibilityMode {

	
	public static void main(String[] args) {
		//领导
		ResponsibilityModeLeader director = new ResponsibilityModeDirector("主管");
		ResponsibilityModeLeader manager = new ResponsibilityModeManager("经理");
		director.setNextLeader(manager);//设置下一级
		
		//请假
		ResponsibilityModeVO zhangsan = new ResponsibilityModeVO("张三",5,"结婚");
		ResponsibilityModeVO lisi = new ResponsibilityModeVO("李四",6,"结婚");

		//审批
		director.handleRequest(zhangsan);
		director.handleRequest(lisi);
	}
}

